﻿window.SearchKey = null;
$.MGJ.LogManage = [];
(function () {
    var _this = $.MGJ.LogManage;
    $.extend($.MGJ.LogManage, {
        ExportLog: function (ele) {
        
            if (!$(ele).find('.no-result').hasClass('no-result')) {
                window.open(ACTION_URL("ExportLog", "Manager") + "?UserName=" + window.SearchKey);
            }
            else {
                $.L.msgWarning('导出数据不能为空！')
            }
          
        }
    });
})(jQuery);
(function () {
    var _this = $.MGJ.LogManage;
    $.extend($.MGJ.LogManage, {
        // 新增用户
        Dialog_AddLogObj: null,
        Dialog_AddLog: function () {
            this.Dialog_AddLogObj = $.L.dialog({
                url: ACTION_URL("AddLog", "Manager"),
                title: "新增用户",
                width: 550,
                height: 140,
                buttons: {
                    "button_save": {
                        type: 'primary',
                        text: '保存',
                        click: function () {
                            $.L.msgError(1)
                        }
                    },
                    "button_cancel": {
                        type: 'default',
                        text: '取消',
                        click: 'MODALMISS'
                    }
                }
            });

        }
    });
})(jQuery);

(function () {
    var _this = $.MGJ.LogManage;
    $.extend($.MGJ.LogManage, {     
        //查询角色信息
        Ajax_GetLogInfo: function (pageIndex) {
            window.SearchKey = removeSpace($("#UserName").val());
            $.L.ajaxHandle({
                url: ACTION_URL("GetLogInfo", "Manager") + "?pageIndex=" + pageIndex,
                data: $("#SearchForm").serialize(),
                success: function (response) {
                    $("#LogInfo").L_bindingDataList(response);                   
                }
            });
        }

    });
})(jQuery);
(function () {
    var _this = $.MGJ.RoleManage;
    $.extend($.MGJ.RoleManage, {


    });
})(jQuery);
